package com.didd.core.common.base;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author diddd
 * @date 2021/12/23 2:53 下午
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DeleteRequest extends com.didd.core.common.base.OperatorRequest {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空")
    protected Long id;

    public DeleteRequest(Long id) {
        this.id = id;
    }

}
